package com.pan.behavioral.status.weather;

import com.pan.behavioral.status.pattern.Status;
import com.pan.behavioral.status.weather.status.RainyPersonStatus;
import com.pan.behavioral.status.weather.status.SunnyPersonStatus;

/**
 * 气象台
 *
 */
public class Observatory{

    private Status rainy = new RainyPersonStatus();
    private Status sunny = new SunnyPersonStatus();

    public Status getWeatherTips(){

        return Math.random()>0.3?sunny:rainy;
    }

}
